package com.blz.flare.parser;

import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * Basic implementation of the {@link ParseResult}.
 */
public class ParseResultImpl
        implements ParseResult {

    private String text;
    private String title;
    private Map<String, String> data;
    private List<URI> parsedUris = new ArrayList<URI>();

    /**
     * {@inheritDoc}
     */
    @Override
    public String getTitle() {
        return title;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getText() {
        return text;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Map<String, String> getData() {
        return data;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<URI> getParsedURIs() {
        return parsedUris;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @param data the data to set
     */
    public void setData(Map<String, String> data) {
        this.data = data;
    }

    /**
     * @param parsedUris the uris we should handle as a result of this parse
     */
    public void setParsedUris(List<URI> parsedUris) {
        this.parsedUris = parsedUris;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }
    
}
